package ldh.im.dto.business;

import ldh.im.dto.base.SuccessResp;

import java.time.LocalDateTime;

public class LoginResp extends SuccessResp {

    private Long userId;
    private LocalDateTime serverDateTime;   // 服务器时间
    private String authToken;               // 认证token
    private Integer authCode;               // 认证编码

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public LocalDateTime getServerDateTime() {
        return serverDateTime;
    }

    public void setServerDateTime(LocalDateTime serverDateTime) {
        this.serverDateTime = serverDateTime;
    }

    public String getAuthToken() {
        return authToken;
    }

    public void setAuthToken(String authToken) {
        this.authToken = authToken;
    }

    public void setLogin(LoginReq loginReq) {
        this.setLocalSeq(loginReq.getLocalSeq());
    }

    public Integer getAuthCode() {
        return authCode;
    }

    public void setAuthCode(Integer authCode) {
        this.authCode = authCode;
    }
}